@extends('layout')
@section('content')
@include('partials.breadcrumb')

<!-- faq begin-->
<div class="faq">
    <div class="container">

        <div class="row">
            <div class="col-xl-12 col-lg-12">
                <div class="accordion" id="accordionExample">
                    <div class="row">
                        <div class="col-xl-6 col-lg-6">
                            @foreach($faqs as $k =>$data)
                                @if($k % 2 == 0)
                            <div class="card">
                                <div class="card-header">
                                    <h5 class="mb-0">
                                        <button class="btn btn-link collapsed" type="button" data-toggle="collapse" data-target="#collapse{{$data->id}}"
                                                aria-expanded="false" aria-controls="collapse{{$data->id}}">
                                            {{__($data->title)}}
                                        </button>
                                    </h5>
                                </div>
                                <div id="collapse{{$data->id}}" class="collapse" data-parent="#accordionExample">
                                    <div class="card-body">
                                        {!! __($data->description) !!}
                                    </div>
                                </div>
                            </div>
                                @endif
                            @endforeach

                        </div>

                        <div class="col-xl-6 col-lg-6">
                            @foreach($faqs as $k =>$data)
                                @if($k % 2 == 1)
                                    <div class="card">
                                        <div class="card-header">
                                            <h5 class="mb-0">
                                                <button class="btn btn-link collapsed" type="button" data-toggle="collapse" data-target="#collapse{{$data->id}}"
                                                        aria-expanded="false" aria-controls="collapse{{$data->id}}">
                                                    {{__($data->title)}}
                                                </button>
                                            </h5>
                                        </div>
                                        <div id="collapse{{$data->id}}" class="collapse" data-parent="#accordionExample">
                                            <div class="card-body">
                                                {!! __($data->description) !!}
                                            </div>
                                        </div>
                                    </div>
                                @endif
                            @endforeach

                        </div>

                    </div>

                </div>

            </div>
        </div>
    </div>
</div>
<!-- faq end -->

@stop